package com.chey.dao;

import com.chey.pojo.META;
import com.chey.pojo.blls.BELT;
import com.chey.pojo.blls.DFLT;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface BllsDao {

    @Insert("insert into MSG_DFME_BLLS values(#{meta.sender},#{meta.receiver},#{meta.sequence},#{meta.dTime},#{meta.bType}," +
            "#{meta.sType},#{dflt.FLID}, #{dflt.FFID}, #{dflt.FIDE}, #{dflt.FATT},#{uuid})")
    public Integer add(@Param("meta") META meta, @Param("dflt") DFLT dflt,@Param("uuid") String uuid);

    @Select("insert into DFLT_BLLS_BELT values(#{belt.BTNO}, #{belt.ID}, #{belt.CODE}, #{belt.BTAT}, #{belt.ESTR}, #{belt.EEND}, #{belt.RSTR}, #{belt.REND}, #{belt.BTSC},#{uuid})")
    public Integer addBlls( @Param("belt") BELT belt,@Param("uuid") String uuid);


}
